import os
basedir = os.path.abspath(os.path.dirname(__file__))


class Config:
	SECRET_KEY = os.environ.get('SECRET_KEY') or '123456'
	SQLALCHEMY_COMMIT_ON_TEARDOWN = True
	SQLALCHEMY_TRACK_MODIFICATIONS = False
	Second = 1
	Minute = 60
	Hour = 3600
	@staticmethod
	def init_app(app):
		pass

class LwLocalDevConfig(Config):
	DEBUG = True
	PUB = False
	# MySQL
	MYSQL_URI = "mysql+pymysql://webdev:mcweb@192.168.0.170:3306/scrapy_db"


config = {
	'lw_local_dev': LwLocalDevConfig,
}
